%% read measurements data
folder = './measurements';
seedID = '536035891B';
emitter = 0;
p  = read_waveform_data(folder,seedID,emitter);

%plot waveform profile
time_length = size(p,2);
times = 1/25:1/25:time_length/25;
plot(times,p(512,:));xlabel('time [\mu s]'); ylabel('amplitude');
title('emitter 0, receiver 511')

%%read source pulse data
load source300.mat
times = 1/25:1/25:300/25;
% plot source profile
figure;
plot(times,source);xlabel('time [\mu s]'); ylabel('amplitude');
title('source profile')
%% read transducers location data
load locations1024.mat
figure; plot(trans_loc(2,:),trans_loc(1,:),'-*'); 
xlabel('mm'); ylabel('mm')


